package org.ahuanlien.crm.service;

import org.ahuanlien.crm.domain.BillRecord;
import org.ahuanlien.crm.query.BillRecordQueryObject;
import org.ahuanlien.crm.query.QueryObject;
import org.ahuanlien.crm.query.SalesChartQueryObject;
import org.ahuanlien.crm.util.PageResult;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface IBillRecordService {
	BillRecord getBySn(String sn);
	PageResult query(BillRecordQueryObject qo);

	void updateByPrimaryKey(BillRecord billRecord);

	void insert(BillRecord billRecord);

	void deleteByPrimaryKey(Long id);

    List<Map<String,BigDecimal>> queryByGroupType(SalesChartQueryObject qo);

    //void pay(Long id);

	void update(BillRecord billRecord);

}
